package edu.sctu.renpingan.day20150517.textone;

/**
 * Created by user18 on 2015/5/12.
 */
public class TextTwo extends TextOne {
    public TextThere[] students = new TextThere[textTheres.length];
    public int k;
    public int age;
    public TextTwo(TextThere[] textTheres) {
        super(textTheres);
    }


    @Override
    public TextThere[] getSysyTem() {

        for(int i = 0;i<10;i++){

            if (textTheres[i].getGrade() > 60 ) {
                students[i] = textTheres[i];
            }

        }
return students;
    }


    public void  GetInterface(TextInterfaceWay textInterfaceWay){
        TextThere[] textfour = new TextThere[10];
        for (int i = 0; i <textTheres.length; i++) {
            textfour[i] = textInterfaceWay.chooseAge(10)[i];
            if(textfour[i] != null){
                System.out.println(textfour[i].getName()+textfour[i].getAge()+textfour[i].getNumber()+textfour[i].getAdress()+textfour[i].getGrade());
            }

        }

    }

}
